from textual.screen import Screen
from textual.widgets import RadioButton, RadioSet, Footer
from textual.containers import Vertical


class Options(Screen):  # 设置界面

    def __init__(self, id) -> None:
        super().__init__() 
        self.id = id  # 该界面的id

    def on_radio_button_changed(self, event: RadioButton.Changed):
        ...

    def compose(self):
        yield Footer()
        yield Vertical(
                RadioSet(
                    RadioButton("1s", id="refresh_1s"),
                    RadioButton("1.5s", id="refresh_1_5s"),
                    RadioButton("2s", id="refresh_2s"),
                    id="refresh_interval"
                ),
                RadioSet(
                    RadioButton("画质优先", id="theme_quality"),
                    RadioButton("兼容模式", id="theme_compatible"),
                    id="theme_mode"
                ),
            id="option_container"
        )
    

